<?php
/**
 * Created by PhpStorm.
 * User: yys
 * Date: 2016/11/18
 * Time: 15:08
 */

namespace App\Http\Routes;

use Illuminate\Contracts\Routing\Registrar;
class SourcePicRoutes
{
    public function map(Registrar $router)
    {
        $router->group(['middleware' => 'api',
            'prefix' => 'api/source-pic','namespace'=>'Api'], function ($router) {
            $router->post('upload', ['uses' => 'SourcePicController@uploadSourcePic']);
            $router->post('update', ['uses' => 'SourcePicController@updateSourcePic']);
            $router->post('get-tag-list', ['uses' => 'SourcePicController@postGetTagList']);
            $router->post('get-source-pic-list', ['uses' => 'SourcePicController@getSourcePicList']);
            $router->post('source-pic-shelves', ['uses' => 'SourcePicController@sourcePicShelves']);
            $router->post('delete-source-pic', ['uses' => 'SourcePicController@delSourcePic']);
            $router->post('source-pic-off-shelves', ['uses' => 'SourcePicController@sourcePicOffShelves']);
            $router->post('get-my-source-pic-audit-list', ['uses' => 'SourcePicController@getMySourcePicAuditList']);
            $router->post('get-my-source-pic-on-shelve-list', ['uses' => 'SourcePicController@getMySourcePicOnTheShelvesList']);
            $router->post('get-my-all-source-pic', ['uses' => 'SourcePicController@getMyAllSourcePicList']);
            $router->post('off-shelves-list', ['uses' => 'SourcePicController@offShelvesList']);
        });
    }
}